<?php
require_once 'library/User.php';
$User = new User();
$login = null;
$msg = '';
if (isset($_POST['login'])) {
    unset($_POST['login']);
    $msg = $User->login($_POST);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>Admin Login Page</title>
    <link rel="shortcut icon" href="favicon.ico"/>

    <link rel="stylesheet" type="text/css" href="css/style.css" media="all"/>
    
     <link rel="stylesheet" href="lib/jquery-ui/css/smoothness/jquery-ui-1.8.15.custom.css" type="text/css"/>
    <link rel="stylesheet" href="lib/harvesthq-chosen/chosen.css" type="text/css"/>
    <link rel="stylesheet" href="lib/elfinder/css/elfinder.full.css" type="text/css"/>
    <link rel="stylesheet" href="lib/visualize/visualize.css" media="all" type="text/css"/>
    <link rel="stylesheet" href="lib/datatables/css/table_jui.css" type="text/css"/>
    <link rel="stylesheet" href="lib/gritter/css/jquery.gritter.css" type="text/css"/>
    <link rel="stylesheet" href="lib/fancybox/jquery.fancybox-1.3.4.css" type="text/css"/>
    <link rel="stylesheet" href="lib/file-uploader/fileuploader.css" type="text/css"/>
    <link rel="stylesheet" href="lib/timepicker-addon/jquery-ui-timepicker-addon.css" type="text/css"/>
    <link rel="stylesheet" href="lib/fullcalendar/fullcalendar.css" type="text/css"/>
    <link rel="stylesheet" href="css/style.css" media="all" type="text/css"/>



    <script type="text/javascript" src="js/head.min.js"></script>

</head>
<body class="bg_c">

<div class="login_wrapper">
    <div style="text-align: center; margin-bottom: 10px; color: #f00;"><?php echo $msg; ?></div>
    <div class="loginBox">
                <div class="heading cf">
            <ul class="login_tabs fr cf">
                <li><a href="#login">Login</a></li>
                <li style="display:none"><a href="#password">Forgoten password</a></li>
            </ul>

        </div>
        <div class="content">
            <div class="login_panes">
                <div>
                    <p class="sepH_b">Enter username and password and press "Login".</p>
                    <form action="" method="post" class="formEl_a sepH_c" id="form_login">                    
                        <!--<div class="msg_box msg_error" id="allErrors" style="display:none"></div>
-->                        <div class="sepH_a">
                            <label for="username" class="lbl_a">Username:</label>
                            <input type="text" id="username" name="username" class="inpt_a"/>
                        </div>
                        <div class="sepH_b">
                            <label for="password" class="lbl_a">Password:</label>
                            <input type="password" id="password" name="password" class="inpt_a"/>
                        </div>
                        <input type="submit" name="login"  class="btn_a btn" value="Login">
                    </form>
                    <div class="content_btm">
                        <a href="#password" class="small">Forgot your username or password?</a>
                    </div>
                </div>
              
            </div>

        </div>
    </div>
</div>
</body>
</html>

